const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    // 配置跨域
    proxy: {
      '/api': {
        target: 'https://localhost:3931/admin',
        ws: false,
        changOrigin: true,  // 允许跨域
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
})
